package com.ansuenjob.jsonBuilder;

import org.json.JSONException;
import org.json.JSONObject;

import com.ansuenjob.model.LoginCenter;

public class PersonAccountCountBuilder extends JSONBuilde {

	@Override
	public LoginCenter buildJson(JSONObject jsonObject) throws JSONException {
		Integer beLookCount = jsonObject.getInt("beLookCount");
		Integer interViewCount = jsonObject.getInt("interViewCount");
		Integer applyCount = jsonObject.getInt("applyCount");
		Integer favoriteCount = jsonObject.getInt("favoriteCount");
		
		LoginCenter loginCenter = new LoginCenter(beLookCount,interViewCount,applyCount,favoriteCount);
		
		return loginCenter;
	}

}
